<template>
  <div>
    <DeviceRepairView :id.sync="editId"></DeviceRepairView>
  </div>
</template>
<script>
const DeviceManage = import("@/ModuleDeviceManage");

// import DeviceRepairView from "../../ModuleDeviceManage/views/DeviceRepair/DeviceRepairView.vue";

export default {
  name: "AuditDeviceRepairDialog",
  components: { DeviceRepairView: DeviceManage.DeviceRepairView },
  props: {
    editId: {
      type: String,
      default: "",
    },
  },
  data() {
    return {
      loading: true,
    };
  },
  watch: {},
  created() { },
  methods: {
    innerPass(obj) {
      // verifyPass(obj)
      //   .then((res) => {
      //     this.$emit("passOrNoPassEmit");
      //   })
      //   .catch();

      DeviceManage.Api["DeviceRepair"].verifyPass(obj)
        .then((res) => {
          this.$emit("passOrNoPassEmit");
        })
        .catch();
    },
    innerReject(obj) {
      // verifyReject(obj)
      //   .then((res) => {
      //     this.$emit("passOrNoPassEmit");
      //   })
      //   .catch();

      DeviceManage.Api["DeviceRepair"].verifyReject(obj)
        .then((res) => {
          this.$emit("passOrNoPassEmit");
        })
        .catch();
    },
    innerWithdraw(obj) {
      obj.auditStatus = 60;

      // verifyReject(obj)
      //   .then((res) => {
      //     this.$emit("passOrNoPassEmit");
      //   })
      //   .catch();

      DeviceManage.Api["DeviceRepair"].verifyReject(obj)
        .then((res) => {
          this.$emit("passOrNoPassEmit");
        })
        .catch();
    },
  },
};
</script>
<style scoped>
</style>
